
/**
 * Class representing a single key used in sorting.
 * @author Jonathan
 *
 */
public class SortKeyExpression {
	
	private String dataType;
	private String executionString;
	private boolean asc;
	
	public SortKeyExpression(String dataType, String executionString, boolean asc)
	{
		this.dataType = dataType;
		this.executionString = executionString;
		this.asc = asc;
	}
	
	
	public String getDataType()
	{
		return dataType;
	}

	
	public String getExecutionString()
	{
		return executionString;
	}

	
	public boolean isAsc()
	{
		return asc;
	}

	public String toString()
	{
		return "[" + dataType + ":" + executionString + "," + ((asc) ? "asc" : "dsc") + "]";
	}
}
